package com.nhjf.model.withdraw;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.nhjf.model.BaseModel;
import com.nhjf.model.oranizationAccount.OranizationAccount;
@SuppressWarnings("serial")
@Entity
@Table(name = "withdraw")
public class Withdraw extends BaseModel{
	/**
	 * 主键
	 */
	@Id
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "native")
	@Column(name = "id", unique = true)
	private Long id;
	/**
	 * 机构账户
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "oranizationAccountId")
	private OranizationAccount oranizationAccount;
	/**
	 * 提现金额已"分"为单位
	 */
	@Column(name = "withdrawalAmount")
	private Integer withdrawalAmount;
	/**
	 * 收款人姓名
	 */
	@Column(name = "payeeName")
	private String payeeName;
	/**
	 * 支付宝账号
	 */
	@Column(name = "zfbAccountNumber")
	private String zfbAccountNumber;
	/**
	 * 创建时间
	 */
	@Column(name = "creaTime")
	private Date creaTime;
	/**
	 * 确认时间
	 */
	@Column(name = "confirmTheTime")
	private Date confirmTheTime;
	/**
	 * 1已到账 2未到账 3已拒绝
	 */
	@Column(name = "status")
	private Integer status;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public OranizationAccount getOranizationAccount() {
		return oranizationAccount;
	}
	public void setOranizationAccount(OranizationAccount oranizationAccount) {
		this.oranizationAccount = oranizationAccount;
	}
	public String getPayeeName() {
		return payeeName;
	}
	public void setPayeeName(String payeeName) {
		this.payeeName = payeeName;
	}
	public String getZfbAccountNumber() {
		return zfbAccountNumber;
	}
	public void setZfbAccountNumber(String zfbAccountNumber) {
		this.zfbAccountNumber = zfbAccountNumber;
	}
	public Date getCreaTime() {
		return creaTime;
	}
	public void setCreaTime(Date creaTime) {
		this.creaTime = creaTime;
	}
	public Date getConfirmTheTime() {
		return confirmTheTime;
	}
	public void setConfirmTheTime(Date confirmTheTime) {
		this.confirmTheTime = confirmTheTime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getWithdrawalAmount() {
		return withdrawalAmount;
	}
	public void setWithdrawalAmount(Integer withdrawalAmount) {
		this.withdrawalAmount = withdrawalAmount;
	}

}
